
task :test do
  require 'rake/runtest'
  Rake.run_tests 'test/**/*.rb'
end

task :migrate, :version do |t, args|
    require 'socket'
    local_hostname = Socket.gethostname
    if args.version.nil? 
        system("sequel -m ./db/migration ./config/#{local_hostname}.yml -L ./db/migration")
    else
        system("sequel -m ./db/migration ./config/#{local_hostname}.yml -M #{args.version}")
    end
end





